package com.ruoyi.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 接口访问申请对象 SYS_APIAPPLY_DATA
 * 
 * @author ruoyi
 * @date 2025-08-03
 */
public class SysApiapplyData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applyname;

    /** 申请原因 */
    @Excel(name = "申请原因")
    private String applyreason;

    /** 用途 */
    @Excel(name = "用途")
    private String use;

    /** 接口id */
    @Excel(name = "接口id")
    private String apiid;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String apiname;

    /** 接口url */
    @Excel(name = "接口地址")
    private String apiurl;

    /** 是否审批通过 */
    @Excel(name = "是否审批通过")
    private String isapprove;

    /** 应用密钥 */
    @Excel(name = "应用密钥")
    private String appsecret;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String approvereason;

    /** 审核人 */
    @Excel(name = "审核人")
    private String approveuser;

    /** 审核时间 */
    @Excel(name = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date approvetime;

    /** 申请时间 */
    @Excel(name = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setApplyname(String applyname) 
    {
        this.applyname = applyname;
    }

    public String getApplyname() 
    {
        return applyname;
    }

    public void setApplyreason(String applyreason) 
    {
        this.applyreason = applyreason;
    }

    public String getApplyreason() 
    {
        return applyreason;
    }

    public void setUse(String use) 
    {
        this.use = use;
    }

    public String getUse() 
    {
        return use;
    }

    public void setApiid(String apiid) 
    {
        this.apiid = apiid;
    }

    public String getApiid() 
    {
        return apiid;
    }

    public void setApiname(String apiname) 
    {
        this.apiname = apiname;
    }

    public String getApiname() 
    {
        return apiname;
    }

    public String getApiurl() {
        return apiurl;
    }

    public void setApiurl(String apiurl) {
        this.apiurl = apiurl;
    }

    public void setIsapprove(String isapprove) 
    {
        this.isapprove = isapprove;
    }

    public String getIsapprove() 
    {
        return isapprove;
    }

    public void setAppsecret(String appsecret) 
    {
        this.appsecret = appsecret;
    }

    public String getAppsecret() 
    {
        return appsecret;
    }

    public String getApprovereason() {
        return approvereason;
    }

    public void setApprovereason(String approvereason) {
        this.approvereason = approvereason;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getApproveuser() {
        return approveuser;
    }

    public void setApproveuser(String approveuser) {
        this.approveuser = approveuser;
    }

    public Date getApprovetime() {
        return approvetime;
    }

    public void setApprovetime(Date approvetime) {
        this.approvetime = approvetime;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applyname", getApplyname())
            .append("applyreason", getApplyreason())
            .append("use", getUse())
            .append("apiid", getApiid())
            .append("apiname", getApiname())
            .append("isapprove", getIsapprove())
            .append("appsecret", getAppsecret())
            .toString();
    }
}
